package com.ado.abyss.core.manager;

import com.ado.abyss.core.dal.model.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysRoleManager extends IService<SysRole>{

    /**
     *
     * @param name
     * @return
     */
    SysRole findByName(String name);

    /**
     *
     * @param record
     * @return
     */
    boolean saveRole(SysRole record);

    /**
     *
     * @param id
     * @return
     */
    SysRole findById(Long id);

    /**
     *
     * @param ids
     * @return
     */
    boolean deleteByIds(List<Long> ids);
}
